package com.dxf.sysadmin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 操作表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("`sys-func`")
@ApiModel(value="Sys-func对象", description="操作表")
public class SysFunc extends Model<SysFunc> {

    private static final long serialVersionUID = 1L;

    /**
     *操作主键
     */
    @ApiModelProperty(value = "操作主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     *操作名
     */
    @ApiModelProperty(value = "操作名")
    private String name;

    /**
     *隶属菜单
     */
    @ApiModelProperty(value = "隶属菜单")
    @TableField("menuId")
    private Long menuId;

    /**
     *排序码
     */
    @ApiModelProperty(value = "排序码")
    @TableField("sortCode")
    private Integer sortCode;

    /**
     *程序路径
     */
    @ApiModelProperty(value = "程序路径")
    @TableField("appUrl")
    private String appUrl;

    /**
     *图标路径
     */
    @ApiModelProperty(value = "图标路径")
    @TableField("imgUrl")
    private String imgUrl;

    /**
     *权限值
     */
    @ApiModelProperty(value = "权限值")
    @TableField("authority")
    private String authority;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
